package com.bowei.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 多条件查询球队的类
 */
public class QueryVo {
    //查询条件
    private String teamName; //按球队名称
    private String chineseName; //中文名称
    private String coach; //教练
    //前台向后台传递日期，vo中日期属性要加@DateTimeFormat(pattern ="")
    //反之，后台传日期到前台，Team中日期要加@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;  //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    private Integer area; //所属联盟 东部 西部  0  1

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getChineseName() {
        return chineseName;
    }

    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }

    public String getCoach() {
        return coach;
    }

    public void setCoach(String coach) {
        this.coach = coach;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getArea() {
        return area;
    }

    public void setArea(Integer area) {
        this.area = area;
    }
}
   